package com.ophiux.member.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@ApiModel("会员邮寄地址表  --  返回实体")
public class MemberMailAddressDTO {

	@ApiModelProperty("地址id")
	private Integer id;

	@ApiModelProperty("会员id")
	private Integer memberId;

	@ApiModelProperty("省")
	private String provinceName;

	@ApiModelProperty("市")
	private String cityName;

	@ApiModelProperty("县")
	private String countyName;

	@ApiModelProperty("详细地址信息")
	private String address;

	@ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime createdAt;

	@ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime updatedAt;

}
